﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F0 RID: 240
	public class TCreatePipeStmt : TCustomSqlStatement
	{
		// Token: 0x0600081D RID: 2077 RVA: 0x00301939 File Offset: 0x002FFB39
		public void setPipeName(TObjectName pipeName)
		{
			this.pipeName = pipeName;
		}

		// Token: 0x0600081E RID: 2078 RVA: 0x00301942 File Offset: 0x002FFB42
		public TObjectName getPipeName()
		{
			return this.pipeName;
		}

		// Token: 0x0600081F RID: 2079 RVA: 0x0030194A File Offset: 0x002FFB4A
		public TCreatePipeStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreatePipe;
		}

		// Token: 0x06000820 RID: 2080 RVA: 0x00301960 File Offset: 0x002FFB60
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.pipeName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000821 RID: 2081 RVA: 0x0030199D File Offset: 0x002FFB9D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000822 RID: 2082 RVA: 0x003019AD File Offset: 0x002FFBAD
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001201 RID: 4609
		private TObjectName pipeName;
	}
}
